<template>
  <el-dialog :visible.sync="dialogVisible" title="标题" width="600px">
    内容
    <span slot="footer" class="dialog-footer">
      <el-button :loading="loading" size="small" type="primary" @click="dialogVisible = false">关闭</el-button>
    </span>
  </el-dialog>
</template>
<script>
export default {
  name: 'BaseDialog',
  props: {
    // 是否显示
    visible: {
      type: Boolean,
      default: false
    }
  },
  data () {
    return {
      loading: false
    }
  },
  computed: {
    dialogVisible: {
      get: function () {
        return this.visible
      },
      set: function (newValue) {
        this.$emit('update:visible', newValue)
      }
    }
  },
  methods: {
  }
}
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="scss" scoped>
</style>
